<?php	
	
	$databaseNaam = "hvs";
	$connect = mysql_connect('localhost','root','');
	$db 	= mysql_select_db($databaseNaam);
	
	if(!$connect)
		error_msg("Kan momenteel geen verbinding maken met database voor bowling gegevens! Neem contact op met ICT-beheerder.");
	$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
?>
    <!-- Submenu met kiezen van datum -->
    <ul class='submenu'>
    
    <li><a href='<?php echo "".$url."&subpage=datum" ?>'>Kies datum</a></li>
    </ul>  
    <!-- Einde submenu -->
    <div id='bowling'>
    <hr />

<?php

	if(!isset($_GET['subpage']))
		$subpage = "index";
	else
		$subpage = $_GET['subpage'];
		
	// Kies inhoud van pagina	
	switch($subpage)
	{
		case "datum":
			include("bowling/datum.php");
		break;
		
		case "reservering":
			include("bowling/reservering.php");
		break;
		case "maak_reservering":
			include("bowling/maak_reservering.php");
		break;
		case "beheerbanen":
			include("bowling/beheerbanen.php");
		break;
		
		case "index":
			include("bowling/overzicht.php");
		break;
	
	}


?>

</div>